home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / grafica / amhelios / ray_rad.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  73 lines

  1. ////////////////////////////////////////////////////////////
  2. //
  3. //  RAY_RAD.H - Ray Casting Radiosity Class Include File
  4. //
  5. //  Version:    1.03A
  6. //
  7. //  History:    94/08/23 - Version 1.00A release.
  8. //              94/11/26 - Modified Close function.
  9. //              94/12/16 - Version 1.01A release.
  10. //              95/02/05 - Version 1.02A release.
  11. //              95/07/16 - Added ambient exitance addition
  12. //                         to Close function.
  13. //              95/07/21 - Version 1.02B release.
  14. //              96/02/14 - Version 1.02C release.
  15. //              96/04/01 - Version 1.03A release.
  16. //
  17. //  Compilers:  Microsoft Visual C/C++ Professional V1.5
  18. //              Borland C++ Version 4.5
  19. //
  20. //  Author:     Ian Ashdown, P.Eng.
  21. //              byHeart Software Limited
  22. //              620 Ballantree Road
  23. //              West Vancouver, B.C.
  24. //              Canada V7S 1W3
  25. //              Tel. (604) 922-6148
  26. //              Fax. (604) 987-7621
  27. //
  28. //  Copyright 1994-1996 byHeart Software Limited
  29. //
  30. //  The following source code has been derived from:
  31. //
  32. //    Ashdown, I. 1994. Radiosity: A Programmer's
  33. //    Perspective. New York, NY: John Wiley & Sons.
  34. //
  35. //  It may be freely copied, redistributed, and/or modified
  36. //  for personal use ONLY, as long as the copyright notice
  37. //  is included with all source code files.
  38. //
  39. ////////////////////////////////////////////////////////////
  40.  
  41. #ifndef _RAY_RAD_H
  42. #define _RAY_RAD_H
  43.  
  44. #include "environ.h"
  45. #include "rad_eqn.h"
  46. #include "ray_cast.h"
  47.  
  48. // Ray casting radiosity equation solver
  49. class RayRad : public RadEqnSolve
  50. {
  51.   private:
  52.     RayCast ffd;        // Form factor determination
  53.  
  54.     void AddAmbient();
  55.  
  56.   public:
  57.     RayRad() : RadEqnSolve() { }
  58.  
  59.     ~RayRad() { }
  60.  
  61.     BOOL Calculate();
  62.     BOOL Open( Environ * );
  63.     void Close()
  64.     {
  65.       if (amb_flag == TRUE)
  66.         AddAmbient();
  67.       AddEmittance();
  68.     }
  69. };
  70.  
  71. #endif
  72.  
  73.